
package com.example.springcloudeurekaserverproducer.mybatis.interceptor;

import com.example.springcloudeurekaserverproducer.mybatis.annotation.UUIDGenerator;
import com.example.springcloudeurekaserverproducer.mybatis.annotation.Version;
import org.apache.ibatis.type.JdbcType;


/**
 * 
 * @ClassName: SqlProperty
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author lanyuansong
 * @date 2018年7月11日
 */
public class SqlProperty implements java.io.Serializable{

	/** 
	* @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
	*/ 
	private static final long serialVersionUID = -8118585343040816564L;
	
	
	private String dbFieldName; //字段名称
	
	private JdbcType jdbcType; //数据类型
	
	//private Object object;
	
	private String sequenceName; //序列名称
	
	private String beanproperties;//dto字段名称
	
	private UUIDGenerator uuid;
	private Version version;
	
	public SqlProperty(String dbFieldName,JdbcType jdbcType,String sequenceName,String beanproperties){
		this.dbFieldName = dbFieldName;
		this.jdbcType = jdbcType;
		//this.object = object;
		this.sequenceName = sequenceName;
		this.beanproperties = beanproperties;
	}
	
	public SqlProperty(){
		
	}


	public Version getVersion() {
		return version;
	}

	public void setVersion(Version version) {
		this.version = version;
	}

	public String getDbFieldName() {
		return dbFieldName;
	}

	public void setDbFieldName(String dbFieldName) {
		this.dbFieldName = dbFieldName;
	}

	public JdbcType getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(JdbcType jdbcType) {
		this.jdbcType = jdbcType;
	}

	

	public UUIDGenerator getUuid() {
		return uuid;
	}

	public void setUuid(UUIDGenerator uuid) {
		this.uuid = uuid;
	}

	public String getSequenceName() {
		return sequenceName;
	}

	public void setSequenceName(String sequenceName) {
		this.sequenceName = sequenceName;
	}

	public String getBeanproperties() {
		return beanproperties;
	}

	public void setBeanproperties(String beanproperties) {
		this.beanproperties = beanproperties;
	}

	@Override
	public String toString() {
		return "SqlProperty [dbFieldName=" + dbFieldName + ", jdbcType="
				+ jdbcType + ", sequenceName=" + sequenceName
				+ ", beanproperties=" + beanproperties + ", uuid=" + uuid + "]";
	}
	
	
	
		

}
